package com.youxuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youxuan.pojo.entity.Goods;
import com.youxuan.pojo.entity.ResponseResult;
import com.youxuan.pojo.vo.GoodsListVo;
import com.youxuan.pojo.vo.PageVo;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    ResponseResult<PageVo<Goods>> getList(Integer pageNum, Integer pageSize, Integer categoryId);

    ResponseResult addSingle(Goods goods);

    ResponseResult removeSingle(Integer goodsId);

    ResponseResult updateSingle(Goods goods);

    ResponseResult<List<Goods>> findGoods(String antistop);

    Goods getGoods(Long goodsId);
}
